<template>
	<view class="mainbgc">
		<header-top :messageInfo="{typeFlag:true,message:'滞销预警',liner:false}"></header-top>
		<view class="table">
			<!-- <view class="flexcenter" v-if="!list.length">
				<view class="placeholderimage"></view>
			</view> -->
			<view class="ffffff radius">
				<view class="flexbetween ffffff tabletitle mainpadding2">
					<view class="strongtext flex1">仓库</view>
					<view class="strongtext flex2">商品名称</view>
					<view class="strongtext flex1 flexcenter">规格</view>
					<view class="strongtext flex3 flexcenter" >最低月销量</view>
					<view class="strongtext flex4 flexcenter">目前库存</view>
				</view>
				<view class="flexstart mainpadding" v-for="(item,index) in 3" :key="index">
					<view class="smalltext flex1">郑州仓</view>
					<view class="smalltext flex2">啤酒</view>
					<view class="smalltext flex1 flexcenter">个</view>
					<view class="smalltext flex3 flexcenter">312</view>
					<view class="smalltext flex4 flexcenter redtext">121312</view>
				</view>
			</view>
		</view>
		<view class="mainpadding posibottom">
			<view class="namecolor flexcenter">
				仓库：10  种类：19  库存：<text class="xiaohong">19</text>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				list:[]
			}
		},
		onShow() {
			this.init()
		},
		methods: {
			init() {
				let _this = this
				httpRequest.request('appapi/manage/warehouse/warehousing_early_warning_info', 'POST', {
				}, false, false, true).then(res => {
					this.list = res.data
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.posibottom{
		position: fixed;
		bottom: 0;
		width: 100%;
		background-color: #fff;
		box-sizing: border-box;
	}
	.tabletitle{
		padding-top :30rpx;
		background-image: url("@/static/image/system/headerbgc2.png");
		background-size: 100% 100%;
	}
	.smalltext{
		font-size: 24rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #666666;
		line-height: 28rpx;
	}
	.flex1{
		flex: 1.5;
	}
	.flex2{
		flex: 2;
	}
	.flex3{
		flex: 1.5;
	}
	.flex4{
		flex: 1.5;
	}
</style>
